﻿<%@ Page Title="" Language="C#" MasterPageFile="~/LoggedBusiness.Master" AutoEventWireup="true" CodeBehind="ViewTruck.aspx.cs" Inherits="PL___Web_Application.ViewTruck" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  <style type="text/css">
        .style1
        {
            width: 500px;
        }
    </style>
     <style type="text/css">
        .buy_bt
        {
            width: 100px;
            height: 30px;
            background-image: url('grafics/buy.png');
            background-color: transparent;
            border: 0;
            background-repeat: no-repeat;
            z-index: 5;
        }
        .buy_bt:hover
        {
            background-image: url('grafics/buy_hover.png');
        }
         .back_bt
        {
            width: 100px;
            height: 30px;
            background-image: url('grafics/back.png');
            background-color: transparent;
            border: 0;
            background-repeat: no-repeat;
            z-index: 5;
        }
        .back_bt:hover
        {
            background-image: url('grafics/back_hover.png');
        }
    </style>
    <script type="text/javascript" language="javascript">

        function previewspage() {
            history.go(-1);


        }
        //To preload images
        buybt = new Image();
        buybt.src = "grafics/buy_bt_hover.png";

        backbt = new Image();
        backbt.src = "grafics/back_bt_hover.png";
       

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentplaceholder" runat="server">
<br />
<br />
<h1>Truck Details:</h1>
    
    <table class="style1">
        <tr>
            <td rowspan="12">
                <asp:Image ID="car_img" runat="server" />
            </td>
            <td>
                <b>Reg-Number:</b></td>
            <td>
                <asp:Label ID="regnumber_lb" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <b>Fuel:</b></td>
            <td>
                <asp:Label ID="fuel_lb" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td>
                <b>Price:</b></td>
            <td>
                <asp:Label ID="price_lb" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td>
                <b>Colour:</b></td>
            <td>
                <asp:Label ID="colour_lb" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td>
                <b>State</b></td>
            <td>
               <asp:Label ID="state_car_lb" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td>
                <strong>Tonnage</strong></td>
            <td>
               <asp:Label ID="tonnage_lb" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td>
                <b>Number of Wheels</b></td>
            <td>
                 <asp:Label ID="num_wheels_lb" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td>
                <strong>High</strong></td>
            <td>
                 <asp:Label ID="High_lb" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td>
                <strong>Width</strong></td>
            <td>
                 <asp:Label ID="width_lb" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td>
                <strong>Lage</strong></td>
            <td>
                 <asp:Label ID="large_lb" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                 &nbsp;</td>
        </tr>
        <tr>
            <td>
                <div id="num_month_lb" runat="server" visible="false" ><b>Number of months </b></div></td>
            <td>
                 <asp:TextBox ID="TextBoxNMonths" runat="server" Visible="false"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
            <br />
                   <asp:Button runat="server" ID="buy_button" Visible="false" Text="" class="buy_bt" OnClick="BuyTruck" OnClientClick="return confirm('Are you sure you want to lease this truck?');" />
            <td>
            <br />
            <div id="Div1" runat="server"  onclick="previewspage()" class="back_bt" >
                  
                  </div>
                  </td>
        </tr>
    </table>
   <asp:Label ID="error_lb" runat="server" ForeColor="Red"></asp:Label>
    </asp:Content>
